<?php /*
session_start();
if(isset($_SESSION['valor']) && $_SESSION['valor'] && isset($_SESSION['rol']) && isset ($_SESSION["login"]) ){*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>
<link href="../Scripts/styles.css" rel="stylesheet" type="text/css" />
<body>
<?php

require("admin/conexion.php");
$rtdo="SELECT * FROM area";
$rtdo=mysql_query($rtdo);    

echo "<form name=\"form\" action =\"mostrar_tabla.php\" method=\"post\">
<table width='90%' height='107' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#F5F5F5' class='texto'>
<tr>
      <td height='30' colspan='2' background='../img/fondo1.jpg' class='tituloDep'><div align='right'><strong>Buscar de Sector &nbsp;&nbsp;</strong></div> </td>
    </tr>
<tr>
      <td bgcolor='#FFFFFF' colspan='2'><br /><br /> </td>
</tr>
<tr>
<td height='50' valign='middle'>
  <div align='center'>
    <select id=\"nombre\" onchange=\"document.form.area.value=this.value\">
      <option>Seleccionar</option>
      ";

while($rtdos=mysql_fetch_row($rtdo))
{
$band=$rtdos["0"];
$aux=$rtdos["1"];
echo "
      <option value=\"$band\">$aux";
        echo "</option>
      ";

}//Fin del while

echo "
    </select>
  </div></td>
<td class='texto'>
Id Area: <input type=\"text\" name=\"area\" id=\"area\" value=\"$bande\"></input></td>
</tr>
<tr>
  <td colspan='2'>&nbsp;</td>
</tr>
<tr>
<td colspan='2' bgcolor='#004A6F'>
  <div align='center'>
    <input type=\"submit\" value=\"Ver Expediente\">
    </input>
  </div></td>
</tr>
</table>
</form>
<br><br>
<table width='90%' border='0' align='center' cellpadding='0' cellspacing='0'>
  <tr>
    <td height='30' background='../img/fondo1.jpg' class='link'>&nbsp;&nbsp;<a href='javascript:history.back();'>&lt;&lt; Volver</a></td>
  </tr>
</table>
";
 
  
?>

</body>
</html>
<?php /*}else{ echo ("SESION NO VALIDA" );}*/?>